{extend name="layout/layout" /}

{block name="content"}
<style>
    .table-bordered>thead>tr>td, .table-bordered>tbody>tr>td, .table-bordered>tfoot>tr>td{
        line-height: 50px;
        text-align: center;
    }
</style>

<div class="row js-check-wrap">
    <div class="col-lg-12">
        <div class="portlet light">
            <div class="box-header">
                <div class="row">
                    {//include file="common:search" /}
                    <div class="col-md-10">
                        <form id="searchForm" action="{$pageSize.url}" class="form" method="get">
                            <div class="form-inline">
                                <label>专题 ：{$typeName}</label>&nbsp;&nbsp;&nbsp;
                                <input type="hidden" name="typeId" value="{$typeId}" >
                                <select class="form-control" name="contentType">
                                    {foreach name="contentTypeList" item="contentType" key="contentTypeKey"}
                                    <option value="{$contentTypeKey}">{$contentType}</option>
                                    {/foreach}
                                </select>
                                <input type="text" class="form-control" name="title" value="" placeholder="标题">

                                <button id="doSearch" type="button" class="btn btn-success" title="筛选">
                                    <i class="fa fa-search"></i> 筛选
                                </button>
                                <button type="reset" class="btn btn-danger" title="清空">
                                    <i class="fa fa-trash"></i> 清空
                                </button>
                            </div>
                        </form>
                    </div>
                    <div class="col-md-2">
                        <div class="pull-right">
                            <a href="{:url('admin/'.strtolower($model).'/add', ['typeId' => $typeId])}" class="btn blue btn-circle"><i class="fa fa-plus"></i> 添加</a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="portlet-body">
                <form class="js-ajax-form" method="post">
                    <div class="">
                        <table id="data-table" class="table table-bordered table-hover dataTable">
                            <thead>
                                <th>图片</th>
                                <th>标题</th>
                                <th>专题</th>
                                <th>类型</th>
                                <th>排序</th>
                                <th>发布时间</th>
                                <th>操作</th>
                            </thead>
                        </table>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<input type="hidden" class="datalist_url" value="{:url('admin/'.strtolower($model).'/index', ['typeId' => $typeId])}">
<input type="hidden" class="edit_url" value="{:url('admin/'.strtolower($model).'/edit', ['typeId' => $typeId])}">
<input type="hidden" class="detail_url" value="{:url('admin/'.strtolower($model).'/detail')}">
<input type="hidden" class="delete_url" value="{:url('admin/'.strtolower($model).'/delete')}">
<input type="hidden" class="setTop_url" value="{:url('admin/'.strtolower($model).'/setTop')}">
{/block}

{block name="pagescript"}
<script src="__STATIC__/admin/pages/js/knowledge.js" type="text/javascript"></script>

{/block}